package com.sc.everyonerentboot.pojo;

import java.io.Serializable;
import java.util.Date;

public class ComputerParameters extends AbstractParameter implements Serializable {
    private String id;
    private String Type;

    public String getType() {
        return Type;
    }

    public void setType(String type) {
        Type = type;
    }

    private String computerType;

    private String model;

    private String ram;

    private String cpu;

    private String graphicsCard;

    private String diskCapacity;

    private Integer screenRefreshRate;

    private Date releaseDate;

    private String screenColorGamut;

    private String processor;

    private String screenResolution;

    private static final long serialVersionUID = 1L;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getComputerType() {
        return computerType;
    }

    public void setComputerType(String computerType) {
        this.computerType = computerType == null ? null : computerType.trim();
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model == null ? null : model.trim();
    }

    public String getRam() {
        return ram;
    }

    public void setRam(String ram) {
        this.ram = ram == null ? null : ram.trim();
    }

    public String getCpu() {
        return cpu;
    }

    public void setCpu(String cpu) {
        this.cpu = cpu == null ? null : cpu.trim();
    }

    public String getGraphicsCard() {
        return graphicsCard;
    }

    public void setGraphicsCard(String graphicsCard) {
        this.graphicsCard = graphicsCard == null ? null : graphicsCard.trim();
    }

    public String getDiskCapacity() {
        return diskCapacity;
    }

    public void setDiskCapacity(String diskCapacity) {
        this.diskCapacity = diskCapacity == null ? null : diskCapacity.trim();
    }

    public Integer getScreenRefreshRate() {
        return screenRefreshRate;
    }

    public void setScreenRefreshRate(Integer screenRefreshRate) {
        this.screenRefreshRate = screenRefreshRate;
    }

    public Date getReleaseDate() {
        return releaseDate;
    }

    public void setReleaseDate(Date releaseDate) {
        this.releaseDate = releaseDate;
    }

    public String getScreenColorGamut() {
        return screenColorGamut;
    }

    public void setScreenColorGamut(String screenColorGamut) {
        this.screenColorGamut = screenColorGamut == null ? null : screenColorGamut.trim();
    }

    public String getProcessor() {
        return processor;
    }

    public void setProcessor(String processor) {
        this.processor = processor == null ? null : processor.trim();
    }

    public String getScreenResolution() {
        return screenResolution;
    }

    public void setScreenResolution(String screenResolution) {
        this.screenResolution = screenResolution == null ? null : screenResolution.trim();
    }


    public ComputerParameters(String id, String type, String computerType, String model, String ram, String cpu, String graphicsCard, String diskCapacity, Integer screenRefreshRate, Date releaseDate, String screenColorGamut, String processor, String screenResolution) {
        this.id = id;
        Type = type;
        this.computerType = computerType;
        this.model = model;
        this.ram = ram;
        this.cpu = cpu;
        this.graphicsCard = graphicsCard;
        this.diskCapacity = diskCapacity;
        this.screenRefreshRate = screenRefreshRate;
        this.releaseDate = releaseDate;
        this.screenColorGamut = screenColorGamut;
        this.processor = processor;
        this.screenResolution = screenResolution;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", computerType=").append(computerType);
        sb.append(", model=").append(model);
        sb.append(", ram=").append(ram);
        sb.append(", cpu=").append(cpu);
        sb.append(", graphicsCard=").append(graphicsCard);
        sb.append(", diskCapacity=").append(diskCapacity);
        sb.append(", screenRefreshRate=").append(screenRefreshRate);
        sb.append(", releaseDate=").append(releaseDate);
        sb.append(", screenColorGamut=").append(screenColorGamut);
        sb.append(", processor=").append(processor);
        sb.append(", screenResolution=").append(screenResolution);
        sb.append("]");
        return sb.toString();
    }

    public ComputerParameters() {
    }

    public ComputerParameters(String id, String computerType, String model, String ram, String cpu, String graphicsCard, String diskCapacity, Integer screenRefreshRate, Date releaseDate, String screenColorGamut, String processor, String screenResolution) {
        this.id = id;
        this.computerType = computerType;
        this.model = model;
        this.ram = ram;
        this.cpu = cpu;
        this.graphicsCard = graphicsCard;
        this.diskCapacity = diskCapacity;
        this.screenRefreshRate = screenRefreshRate;
        this.releaseDate = releaseDate;
        this.screenColorGamut = screenColorGamut;
        this.processor = processor;
        this.screenResolution = screenResolution;
    }
}